package com.imagine.service;

import com.imagine.entity.BaseResult;
import com.imagine.entity.Delegation;

import java.util.HashMap;
import java.util.List;

/**
 * Created by liangyue on 2017/9/26.
 */
public interface DelegationService {
    Delegation getDelegationById(int delegationId);
    int insertDelegation(Delegation delegation);
    HashMap handleDelegation(Delegation delegation);

    List<Delegation> getDelegationSubmitted();
    void initSecurityDealInfo();
    BaseResult backoutDelegation(int delegationId);
    void updateDelegationState(HashMap hashMap);

    BaseResult getBargainByCId(String cAccountId);
    BaseResult getDelegationsByCId(String cAccountId);


}
